package cn.yotta.user.api.error;

import cn.yotta.common.api.exception.ErrorCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wyaoyao
 * @date 2022/11/8 10:48
 */
@Getter
@AllArgsConstructor
public enum UserCommonErrorCode implements ErrorCode {
    USER_NOT_EXISTS("user.not.exists", "用户不存在"),
    USER_NAME_MUST_NOT_NULL("user.name.must.not.null", "用户名不能为空"),
    USERNAME_NOT_EXIST("username.not.exist", "用户名不存在"),
    USER_IS_LOCKED("user.is.locked","用户被冻结"),
    USER_IS_DISABLED("user.is.disabled","用户不可用"),
    USER_ID_IS_NULL("user.id.is.null","用户id为空"),
    OPERATOR_IS_NULL("operator.is.null","当前操作人为空"),

    PHONE_IS_NULL("phone.is.null","手机号为空"),


    ;

    private final String code;

    private final String message;



}
